/* 登录页面样式 */
body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-body {
    padding: 2rem;
}

.form-control {
    border-radius: 5px;
    padding: 0.75rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    border-color: #dc3545;
}

.btn-danger {
    padding: 0.75rem;
    font-weight: 500;
    background-color: #c62828;
    border-color: #c62828;
}

.btn-danger:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.alert {
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* 输入框组样式 */
.input-group-text {
    background-color: #fff;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #dc3545;
}

/* 密码显示切换按钮样式 */
#togglePassword {
    border-left: none;
}

#togglePassword:hover {
    background-color: #f8f9fa;
}

/* 图标样式 */
.fas {
    color: #6c757d;
}

.btn .fas,
.text-danger .fas {
    color: inherit;
}

/* 添加响应式阴影效果 */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
    }
}

/* 添加header的样式 */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.9);
    padding: 0.8rem 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,.1);
}

.navbar-light .navbar-nav .nav-link {
    color: #666;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #c62828;
}

/* 添加footer的样式 */
footer {
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #c62828 !important;
}

/* 首页样式 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.jujiao_right .card-header {
    background-color: #c62828;
}

.jujiao_right .list-unstyled li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.jujiao_right .list-unstyled li:last-child {
    border-bottom: none;
}

.jujiao_right .list-unstyled a:hover {
    color: #c62828 !important;
}

.shendu .card-img-top {
    height: 160px;
    object-fit: cover;
}

/* 主导航栏样式 */
.navbar-dark .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.navbar-dark .navbar-nav .nav-item {
    flex: 1;
    text-align: center;
}

.navbar-dark .navbar-nav .nav-link {
    padding: 1rem;
    color: #fff;
    font-size: 1.1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column;
    }
    
    .navbar-dark .navbar-nav .nav-item {
        width: 100%;
    }
}

/* 要闻聚焦样式 */
.news-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    max-width: calc(100% - 60px); /* 减去日期的宽度 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.news-list .text-muted {
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 50px;
    text-align: right;
}

.news-list a:hover {
    color: #c62828 !important;
}

/* 要闻聚焦样式 */
.jujiao_right .card {
    height: 100%;
}

.jujiao_right .card-body {
    padding: 1rem;
    overflow-y: auto;
    max-height: 29rem;
}

.news-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.news-list li:last-child {
    border-bottom: none;
}

/* 深度观察样式 */
.shendu {
    margin-bottom: 2rem;
}

.shendu .card {
    margin-bottom: 1rem;
}

.shendu .card-img-top {
    height: 160px;
    object-fit: cover;
}

.shendu .card-body {
    padding: 1rem;
}

/* 国际资讯页面样式 */
.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-img img {
    width: 200px;
    height: 120px;
    object-fit: cover;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.news-title a:hover {
    color: #c62828 !important;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-meta {
    font-size: 0.85rem;
}

/* 热门新闻样式 */
.hot-news .card-body {
    padding: 1rem;
}

.hot-news li {
    padding: 0.5rem 0;
}

.hot-news a:hover {
    color: #c62828 !important;
}

/* 国际资讯页面样式 */
.shizheng_left {
    padding-right: 30px;
}

.shizheng_left img {
    margin-bottom: 20px;
}

.shizheng_left ul {
    margin: 0;
    padding: 0;
}

.shizheng_left li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.shizheng_left li:last-child {
    border-bottom: none;
}

.shizheng_left a {
    color: #333;
    font-size: 16px;
    line-height: 1.5;
}

.shizheng_left a:hover {
    color: #c62828;
}

/* 右侧样式 */
.shizheng_right img {
    margin-bottom: 15px;
    width: 100%;
}

.shizheng_right .text-news {
    margin-top: 20px;
}

.shizheng_right .text-news a {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shizheng_right .text-news a:hover {
    color: #c62828;
}

/* 图片新闻样式 */
.image-news img {
    transition: transform 0.3s;
}

.image-news img:hover {
    transform: scale(1.02);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shizheng_left {
        padding-right: 15px;
        margin-bottom: 30px;
    }
    
    .shizheng_right {
        padding-left: 15px;
    }
}

/* 国际要闻页面样式 */
.guoji {
    position: relative;
    margin-bottom: 30px;
}

.guoji .main-image {
    width: 100%;
    margin-bottom: 20px;
}

.guoji_left_tittle {
    font-size: 20px;
    font-weight: bold;
    color: #c62828;
    padding: 10px 0;
    border-bottom: 2px solid #c62828;
    margin-bottom: 15px;
}

.guoji_left_list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.guoji_left_list li:last-child {
    border-bottom: none;
}

.guoji_left_list span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.guoji_left_list p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.guoji_right span {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #c62828;
    padding: 10px 0;
    border-bottom: 2px solid #c62828;
    margin-bottom: 15px;
}

.guoji_right .hot-news-item {
    margin-bottom: 20px;
}

.guoji_right img {
    width: 100%;
    margin-bottom: 10px;
}

.guoji_right p {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

/* 新闻详情页样式 */
.news-detail {
    padding: 20px 0;
}

.news-detail .news-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
}

.share-buttons .btn {
    padding: 5px 15px;
    border: 1px solid #ddd;
}

.share-buttons .btn:hover {
    background-color: #f8f9fa;
    border-color: #c62828;
    color: #c62828;
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
}

.news-meta {
    font-size: 14px;
    color: #666;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-text {
    margin-top: 20px;
}

.text-indent {
    text-indent: 2em;
    margin-bottom: 1.5em;
}

.news-image img {
    max-width: 100%;
    height: auto;
}

.related-news h5 {
    color: #c62828;
    font-weight: bold;
}

.related-news-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.related-news-item:last-child {
    border-bottom: none;
}

.related-news-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.related-news-title {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    margin: 8px 0;
}

.related-news a:hover .related-news-title {
    color: #c62828;
}

/* 消息提示框样式 */
.message-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.message-content {
    background-color: rgba(164, 157, 157, 0.9);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 250px;
    max-width: 80%;
}

/* 不同类型的消息样式 */
.message-success {
    background-color: rgba(40, 167, 69, 0.95);
}

.message-error {
    background-color: rgba(220, 53, 69, 0.95);
}

.message-warning {
    background-color: rgba(255, 193, 7, 0.95);
}

.message-info {
    background-color: rgba(23, 162, 184, 0.95);
}

/* 导航项悬停效果 */
.navbar-dark .navbar-nav .nav-link:hover {
    background-color: rgba(255,255,255,.1);
}

/* 当前激活的导航项样式 */
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255,255,255,.2);
    color: #fff;
}

/* 导航项点击效果 */
.navbar-dark .navbar-nav .nav-link:active {
    background-color: rgba(255,255,255,.3);
}

/* 搜索结果页面样式 */
.search-results {
    padding: 20px 0;
}

.search-header {
    border-bottom: 2px solid #c62828;
    padding-bottom: 1rem;
}

.search-header h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.news-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item .row {
    min-height: 180px;
}

.news-img {
    height: 180px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    height: 100%;
}

.news-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-title a:hover {
    color: #c62828 !important;
}

.news-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
}

.no-results {
    color: #666;
    padding: 3rem 0;
}
